package com.fifth.common.pojo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 系统通知表
 * </p>
 *
 * @author 第五组
 * @since 2022-09-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("e_message")
@ApiModel(value = "Message对象", description = "系统通知表")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("通知id")
    private String id;

    @DateTimeFormat(pattern = "yyyy-MM-dd 'T' HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("发送日期")
    private LocalDateTime gmtDate;

    @ApiModelProperty("管理员id")
    private String eid;

    @ApiModelProperty("发送类型")
    private String stype;

    @ApiModelProperty("发送内容")
    private String scontend;

    @TableLogic //逻辑删除列
    @ApiModelProperty("逻辑删除")
    private int isDeleted;

    @TableField(exist = false)
    private String rid;

    @TableField(exist = false)
    private String roleName;

//    @DateTimeFormat(pattern = "yyyy-MM-dd 'T' HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @TableField(exist = false)
//    private String startTime;
//
//    @DateTimeFormat(pattern = "yyyy-MM-dd 'T' HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
//    @TableField(exist = false)
//    private String endTime;


//    @TableField(exist = false)
//    private Role role;
}
